// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_hm_surblservers
// * CreateDate    : 2014-06-05 18:30:02
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:02
// * LastChanger   : 2014-06-05 18:30:02
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class HmSurblserversEntity : EntityBase
    {
        public HmSurblserversTable TableSchema
        {
            get
            {
                return HmSurblserversTable.Current;
            }
		}
		
		public HmSurblserversEntity()
        {

        }
		
		public HmSurblserversEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Surblid = Convert.ToInt32(CommonFunctions.ToObject(dr["surblid"]));
			this.Surblactive = Convert.ToByte(CommonFunctions.ToObject(dr["surblactive"]));
			this.Surblhost = Convert.ToString(CommonFunctions.ToObject(dr["surblhost"]));
			this.Surblrejectmessage = Convert.ToString(CommonFunctions.ToObject(dr["surblrejectmessage"]));
			this.Surblscore = Convert.ToInt32(CommonFunctions.ToObject(dr["surblscore"]));
        }
		
		public HmSurblserversEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Surblid = Convert.ToInt32(CommonFunctions.ToObject(dr["surblid"]));
			this.Surblactive = Convert.ToByte(CommonFunctions.ToObject(dr["surblactive"]));
			this.Surblhost = Convert.ToString(CommonFunctions.ToObject(dr["surblhost"]));
			this.Surblrejectmessage = Convert.ToString(CommonFunctions.ToObject(dr["surblrejectmessage"]));
			this.Surblscore = Convert.ToInt32(CommonFunctions.ToObject(dr["surblscore"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HmSurblserversTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public int Surblid
        {
            get { return Convert.ToInt32(GetData(HmSurblserversTable.C_surblid)); }
            set { SetData(HmSurblserversTable.C_surblid, value); }
        }
		
        [DataMember]
        public byte Surblactive
        {
            get { return Convert.ToByte(GetData(HmSurblserversTable.C_surblactive)); }
            set { SetData(HmSurblserversTable.C_surblactive, value); }
        }
		
        [DataMember]
        public string Surblhost
        {
            get { return Convert.ToString(GetData(HmSurblserversTable.C_surblhost)); }
            set { SetData(HmSurblserversTable.C_surblhost, value); }
        }
		
        [DataMember]
        public string Surblrejectmessage
        {
            get { return Convert.ToString(GetData(HmSurblserversTable.C_surblrejectmessage)); }
            set { SetData(HmSurblserversTable.C_surblrejectmessage, value); }
        }
		
        [DataMember]
        public int Surblscore
        {
            get { return Convert.ToInt32(GetData(HmSurblserversTable.C_surblscore)); }
            set { SetData(HmSurblserversTable.C_surblscore, value); }
        }
		
		#endregion
	}
	
	
}	

